package com.controller;

import com.pojo.Parkrule;
import com.service.ParkingCarService;
import com.service.ParkruleService;
import com.vo.Result;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

@Controller
@RequestMapping("/ParkRule")
public class ParkRuleController {
    @Resource
    private ParkruleService parkRuleService;

    @Resource
    private ParkingCarService parkingCarService;
    @ResponseBody
    @RequestMapping("/selectAllParkRule")
    public Result selectAllParkRule(){
        List<Parkrule> parkrules = parkRuleService.selectAllParkRule();
        return Result.success(parkrules);
    }
}
